package cn.lanqiao.system.service.impl;

import cn.lanqiao.common.entity.Cinema;
import cn.lanqiao.common.vo.CinemaVo;
import cn.lanqiao.system.mapper.CinemaMapper;
import cn.lanqiao.system.service.CinemaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
@Repository
@Service
public class CinemaServiceImpl implements CinemaService {

    @Autowired
    public CinemaMapper cinemaMapper;

    @Override
    public List<Cinema> getAllCinema() {
        return cinemaMapper.getAllCinema();
    }

    @Override
    public List<Cinema> findCinemaName(String value) {
        return cinemaMapper.findCinemaName(value);
    }

    @Override
    public List<CinemaVo> findAll(Integer id) {
        return cinemaMapper.findAll(id);
    }
}
